package com.kinyx.framework.file;

import java.util.Locale;

import org.junit.Assert;
import org.junit.Test;

public class KI18NUtils_Tester {

	@Test
	public void test() {
		Assert.assertEquals("删除", KPropertiesReader.getStringValue(KI18NUtils.getProperties(null, "UsingStatus"), "DEPRECATED", null));
		Assert.assertEquals("删除", KPropertiesReader.getStringValue(KI18NUtils.getProperties(Locale.SIMPLIFIED_CHINESE, "UsingStatus"), "DEPRECATED", null));
		Assert.assertEquals("删除", KPropertiesReader.getStringValue(KI18NUtils.getProperties(Locale.CHINESE, "UsingStatus"), "DEPRECATED", null));
		Assert.assertEquals("deprecated", KPropertiesReader.getStringValue(KI18NUtils.getProperties(new Locale("en"), "UsingStatus"), "DEPRECATED", null));
	}

}
